package wxshop.api.admin.model.wx;

import javax.xml.bind.annotation.*;

/**
 * Created by 121874694@qq.com on 2018/3/4.
 */
@XmlRootElement(name="xml")
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(propOrder = {"toUserName","fromUserName","createTime","msgType","event","eventKey"})
public class Attention {
	@XmlElement(name = "ToUserName")
	private String toUserName;
	@XmlElement(name = "FromUserName")
	private String fromUserName;
	@XmlElement(name = "CreateTime")
	private String createTime;
	@XmlElement(name = "MsgType")
	private String msgType;
	@XmlElement(name = "Event")
	private String event;
	@XmlElement(name = "EventKey")
	private String eventKey;
	
	public Attention () {
	}
	
	public Attention (String toUserName, String fromUserName, String createTime, String msgType, String event, String eventKey) {
		this.toUserName = toUserName;
		this.fromUserName = fromUserName;
		this.createTime = createTime;
		this.msgType = msgType;
		this.event = event;
		this.eventKey = eventKey;
	}
	
	public String getToUserName () {
		return toUserName;
	}
	
	public void setToUserName (String toUserName) {
		this.toUserName = toUserName;
	}
	
	public String getFromUserName () {
		return fromUserName;
	}
	
	public void setFromUserName (String fromUserName) {
		this.fromUserName = fromUserName;
	}
	
	public String getCreateTime () {
		return createTime;
	}
	
	public void setCreateTime (String createTime) {
		this.createTime = createTime;
	}
	
	public String getMsgType () {
		return msgType;
	}
	
	public void setMsgType (String msgType) {
		this.msgType = msgType;
	}
	
	public String getEvent () {
		return event;
	}
	
	public void setEvent (String event) {
		this.event = event;
	}
	
	public String getEventKey () {
		return eventKey;
	}
	
	public void setEventKey (String eventKey) {
		this.eventKey = eventKey;
	}
	
	@Override
	public String toString () {
		return "Attention{" +
				"toUserName='" + toUserName + '\'' +
				", fromUserName='" + fromUserName + '\'' +
				", createTime='" + createTime + '\'' +
				", msgType='" + msgType + '\'' +
				", event='" + event + '\'' +
				", eventKey='" + eventKey + '\'' +
				'}';
	}
}
